package com.example.javaee.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.javaee.domain.Grade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface GradeMapper extends BaseMapper<Grade> {

    @Select("select * from grade where userId=#{userId} and courseId=#{courseId}")
    Grade selectByUserAndCourse(Integer userId,Long courseId);
}

